﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Profile.aspx.vb" Inherits="gojira.Profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="ID" DataSourceID="SqlDataSource1" GridLines="None">
    <Columns>
        <asp:TemplateField>
        <ItemTemplate>
            <h1><%# Eval("FanName")%></h1>
            <p><%# Eval("FirstName")%> <%# Eval("LastName")%></p>
            <p>About me: <%# Eval("Description")%></p>
            <p>Location: <%# Eval("City")%>, <%# Eval("Country")%></p>
            <p>My favourite movie is: <%# Eval("FavouriteMovie")%></p>
            <p>My favourite movie monster is: <%# Eval("FavouriteMonster")%></p>
            <p>Rank: <%# Eval("Rank")%></p>
            <p><asp:Image ID="Image1" runat="server" Height="400px" Width="300px" ImageUrl='<%# Eval("Picture") %>' /></p>
        </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:godzillaFilms %>" 
    ProviderName="<%$ ConnectionStrings:godzillaFilms.ProviderName %>" 
    SelectCommand="SELECT * FROM [Profile] WHERE ([FanName] = ?)">
    <SelectParameters>
        <asp:QueryStringParameter Name="FanName" QueryStringField="FanName" 
            Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
    <br />
    <asp:Button ID="btn_editProfile" runat="server" PostBackUrl="~/AddProfile.aspx" 
        Text="Edit Profile" />
</asp:Content>
